package com.example.demo.mapper;

import com.example.demo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-05-06
 * Time: 18:21
 */
@Mapper
public interface UserMapper {
    List<UserEntity> getAll();

    // 查询 UserInfo 中 id 为 id 的用户
    UserEntity getUserById(@Param("id") Integer id);
}
